<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>客户信息</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {

		});
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a>客户信息</a></li>
	</ul><br/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
		<tr>
			<th>机构</th>
			<th>渠道</th>
			<th>理赔号</th>
			<th>客户姓名</th>
			<th>性别</th>
			<th>申请类型</th>
			<th>出险时效</th>
		</tr>
		</thead>
		<tbody>
		<tr>
			<td>
				${firm.office.name}
			</td>
			<td>
				${fns:getDictLabel(firm.qd, 'qd_static', '')}
			</td>
			<td>
				${firm.member.liId}
			</td>
			<td>
				${firm.memberName}
			</td>
			<td>
				${fns:getDictLabel(firm.member.sex, 'sex', '')}
			</td>
			<td>
				${fns:getDictLabel(firm.sqLei, 'sq_lei', '')}
			</td>
			<td  style="text-align: center;color:#f89904;">
				<b>${firm.cxSx}</b>
			</td>
		</tr>
		</tbody>
		<thead>
		<tr>
			<th>出险日期</th>
			<th>报案日期</th>
			<th>生效日期</th>
			<th>状态</th>
			<th>案件难易程度</th>
			<th>所属机构</th>
			<th>受理时效</th>
		</tr>
		</thead>
		<tbody>
		<tr>
			<td>
				<fmt:formatDate value="${firm.chuTime}" pattern="yyyy-MM-dd"/>
			</td>
			<td>
				<fmt:formatDate value="${firm.member.baTime}" pattern="yyyy-MM-dd"/>
			</td>
			<td>
				<fmt:formatDate value="${firm.sxTime}" pattern="yyyy-MM-dd"/>
			</td>
			<td style="<c:choose>
			<c:when test="${firm.ywStatic=='1'}">color:#df7401 !important;</c:when>
			<c:when test="${firm.ywStatic=='2'}">color:#dfb801 !important;</c:when>
			<c:when test="${firm.ywStatic=='3'}">color:#2e71b5 !important;</c:when>
			<c:when test="${firm.ywStatic=='4'}">color:#1ABC9C !important; </c:when>
			<c:when test="${firm.ywStatic=='5'}">color:#46cfd1 !important;</c:when>
			<c:when test="${firm.ywStatic=='6'}">color:#e44dff !important;</c:when>
				<c:otherwise></c:otherwise>
					</c:choose>">
				${fns:getDictLabel(firm.ywStatic, 'business_static', '')}
			</td>
			<td>
				${fns:getDictLabel(firm.difficulty, 'jian_fu', '')}
			</td>
			<td>
				${firm.office.name}
			</td>
			<td style="text-align: center;color:#e108b1;">
				<b>${firm.slSx}</b>
			</td>
		</tr>
		</tbody>
		<tbody>
		<thead>
		<tr>
			<th>回访起始日期</th>
			<th>回访截止日期</th>
			<th>实际回访日期</th>
			<th colspan="4" style="text-align: center">回访倒计时</th>
		</tr>
		</thead>
		<tbody>
		<tr>
			<td>
				<fmt:formatDate value="${firm.hfTime}" pattern="yyyy-MM-dd"/>
			</td>
			<td>
				<fmt:formatDate value="${firm.hfFtime}" pattern="yyyy-MM-dd"/>
			</td>
			<td>
				<fmt:formatDate value="${firm.hfStime}" pattern="yyyy-MM-dd"/>
			</td>
			<td colspan="4" style="text-align: center;color: blue;">
				<b>${firm.hui}</b>
			</td>

		</tr>
		</tbody>
		<c:if test="${not empty firm.slTime}">
		<tbody>
		<thead>
		<tr>
			<th>受理起始日期</th>
			<th>结案截止日期</th>
			<th>受理回访日期</th>
			<th colspan="4" style="text-align: center">受理倒计时</th>
		</tr>
		</thead>
		<tbody>
		<tr>
			<td>
				<fmt:formatDate value="${firm.slTime}" pattern="yyyy-MM-dd"/>
			</td>
			<td>
				<fmt:formatDate value="${firm.slFtime}" pattern="yyyy-MM-dd"/>
			</td>
			<td>
				<fmt:formatDate value="${firm.slStime}" pattern="yyyy-MM-dd"/>
			</td>
			<td colspan="4" style="text-align: center; color: blue;" >
				<b>${firm.shou}</b>
			</td>

		</tr>
		</tbody>
		</c:if>
		<tbody>
		<thead>
		<tr>
			<th colspan="2">投保信息</th>
			<th colspan="2">出险信息</th>
			<th colspan="3">伤病诊断</th>
		</tr>
		</thead>
		<tbody>
		<tr>
			<td colspan="2">
				${firm.tbXinxi}
			</td>
			<td colspan="2">
				${firm.chuXinxi}
			</td>
			<td colspan="3">
				${firm.sbZd}
			</td>
		</tr>
		</tbody>
		<tbody>
		<thead>
		<tr>
			<th colspan="7">备注</th>
		</tr>
		</thead>
		<tbody>
		<tr>
			<td colspan="7">
				${firm.huiRemark}
			</td>
		</tr>
		</tbody>
		<c:if test="${not empty firm.huiFirst}">
		<tbody>
		<thead>
		<tr>
			<th colspan="7">第一次回访</th>
		</tr>
		</thead>
		<tbody>
		<tr>
			<td colspan="7">
				${firm.huiFirst}
			</td>
		</tr>
		</tbody>
		</c:if>
		<c:if test="${not empty firm.huiSecond}">
		<tbody>
		<thead>
		<tr>
			<th colspan="7">第二次回访</th>
		</tr>
		</thead>
		<tbody>
		<tr>
			<td colspan="7">
				${firm.huiSecond}
			</td>
		</tr>
		</tbody>
		</c:if>
		<c:if test="${not empty firm.huiThird}">
		<tbody>
		<thead>
		<tr>
			<th colspan="7">第三次回访</th>
		</tr>
		</thead>
		<tbody>
		<tr>
			<td colspan="7">
				${firm.huiThird}
			</td>
		</tr>
		</tbody>
		</c:if>
	</table>
</body>
</html>